package me.numark.activities;

import android.content.pm.ActivityInfo;
import android.os.Build;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.tencent.smtt.sdk.WebView;

import butterknife.Bind;
import butterknife.ButterKnife;
import me.numark.R;

/**
 * Created by Yao on 2015/8/24.
 */
public class ProtocolActivity extends BaseActivity{
    @Bind(R.id.toolbar)
    Toolbar toolbar;

    @Bind(R.id.toolbar_title)
    TextView titleTextView;

    @Bind(R.id.back)
    View backInToolbar;

    @Bind(R.id.webview)
    WebView webView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_protocol;
        super.onCreate(savedInstanceState);
        webView.getSettings().setDomStorageEnabled(true);
        webView.loadUrl(" file:///android_asset/numa.html ");
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            webView.setLayerType(View.LAYER_TYPE_NONE, null);
        }
        titleTextView.setText(getString(R.string.protocol_title));
    }
}
